package com.zqwh.xtool.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.os.Bundle;

/**
 * Created by eason.yang on 2018/10/22.
 */

public class NetworkChangeReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        if(ConnectivityManager.CONNECTIVITY_ACTION.equals(intent.getAction())){
            Bundle b = intent.getExtras();
            if(b != null){
//                RxBus.getInstance().post(new RxMsg<>(MsgType.MSG_NETWORK_CHANGED, null));
            }
        }
    }
}
